package HomeWork2;

public class OldPhone extends CellPhone{
    private String phone;
    private String message;

    public OldPhone(String phone, String message) {
        this.phone = phone;
        this.message = message;
    }

    public OldPhone() {
    }

    @Override
    public String getPhone() {
        return phone;
    }

    @Override
    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public void CallPhone() {
        System.out.println("这是一个老手机在打电话");
    }

    @Override
    public void SendMessage() {
        System.out.println("这是一个老手机在发短信");
    }
}
